// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.common.entity.WorkflowRecordDto;
import com.liuxinlong.modules.dao.WorkFlowNodeRecordDao;
import com.liuxinlong.modules.entity.WorkFlowNodeRecord;
import com.liuxinlong.modules.mapper.WorkFlowNodeRecordMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2024年4月23日
 */
@Service
public class WorkFlowNodeRecordDaoImpl extends ServiceImpl<WorkFlowNodeRecordMapper, WorkFlowNodeRecord> implements WorkFlowNodeRecordDao {


    @Override
    public List<WorkFlowNodeRecord> getCurrentEffectiveRecord(String workflowId, int currentNode) {
        return baseMapper.getCurrentEffectiveRecord(workflowId,currentNode);
    }

    @Override
    public List<WorkFlowNodeRecord> getFinishedWorkflowRecord(String workflowId) {
        return baseMapper.getFinishedWorkflowRecord(workflowId);
    }

    @Override
    public List<WorkFlowNodeRecord> getWorkflowByDealUser(String dealUser) {
        return baseMapper.getWorkflowByDealUser(dealUser);
    }

    @Override
    public int getWorkflowAllCount(Map<String, Object> queryParam) {
        return baseMapper.getWorkflowAllCount(queryParam);
    }

    @Override
    public List<WorkFlowNodeRecord> getWorkflowRecord(String workflowId) {
        return baseMapper.getWorkflowRecord(workflowId);
    }

    @Override
    public List<WorkflowRecordDto> getBusinessWorkflowRecord(Map<String, Object> queryParam) {
        return baseMapper.getBusinessWorkflowRecord(queryParam);
    }
}
